package com.jintoufs.dao.travelagency;

import com.jintoufs.dao.QueryFilters;

import java.util.List;
import java.util.Map;

import com.jintoufs.domain.travelagency.TravelAgency;
import com.jintoufs.domain.travelagency.TravelAgencyExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TravelAgencyMapper {
    int countByExample(TravelAgencyExample example);

    int deleteByExample(TravelAgencyExample example);

    int deleteByPrimaryKey(String id);

    int insert(TravelAgency record);

    int insertSelective(TravelAgency record);

    List<TravelAgency> selectByExample(TravelAgencyExample example);

    TravelAgency selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TravelAgency record, @Param("example") TravelAgencyExample example);

    int updateByExample(@Param("record") TravelAgency record, @Param("example") TravelAgencyExample example);

    int updateByPrimaryKeySelective(TravelAgency record);

    int updateByPrimaryKey(TravelAgency record);

    List<Map> getByFilter(QueryFilters filters);

    List<Map> getCustomerInfoByFilter(QueryFilters filters);

    List<Map<String,Object>> queryCustomerInfo(Map<String,Object> map);

    List<Map<String,Object>> queryTravelAgencyInfo(Map<String, Object> map);
}